#!/bin/bash - 
#
#  Usage:     Saying "hello" or "goodbye" depending how the script is invoked
#             make a link named goodbye to test this
#  Author:    bucunzai <freecityer@gmail.com>
#  Version:   1.0
#  Created:   03/06/2011 07:27:38 PM CST
#

set -o nounset                              # Treat unset variables as an error

HELLO_CALL=65
GOODBYE_CALL=66

if [ $0 = "./goodbye" ]
then
    echo "Good-bye!"
    exit $GOODBYE_CALL
fi

echo "Hello!"
exit $HELLO_CALL
